package com.crane.oss.enums;

/**
 * 绑定状态
 * 
 * @author tyh
 *
 */
public enum BindStatusEnum {
	
	BIND_1(1, "已绑定"),
	BIND_2(2, "已解绑"),
	BIND_3(3, "已配对"),
	BIND_4(4, "取消配对");

	private Integer type;

	private String remark;

	private BindStatusEnum(Integer type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static String getBindStatusName(Integer type) {
		for (BindStatusEnum bindStatusEnum : BindStatusEnum.values()) {
			if (bindStatusEnum.getType().equals(type)) {
				return bindStatusEnum.getRemark();
			}
		}
		return "";
	}
}
